
<div class="form-group">
    <label for="goodsName">商品名称</label>
    <input type="hidden" class="goods-id" name="goods_id" value="<?php echo isset($goods_row)?$goods_row['goods_id']:0;?>">
    <input type="text" class="form-control" id="goodsName" name="Goods[name]" value="{{isset($goods_row)?$goods_row['goods_name']:''}}" placeholder="请输入商品名称">
</div>

{{--<div class="form-group">--}}
    {{--<label>选择商品分类</label>--}}
    {{--<select class="form-control" name="Goods[cat_id]">--}}
        {{--@foreach($cat_list as $cat)--}}
        {{--<option value="{{$cat['id']}}" {{$cat['level']==0?'disabled':''}} class="{{$cat['level']==0?'toplevel':'nextlevel'}}" {{isset($goods_row)?($cat['id'] ==$goods_row['cat_id'] ? 'selected':''):''}}>{{$cat['html'].$cat['cate_name']}}</option>--}}
        {{--@endforeach--}}
    {{--</select>--}}
{{--</div>--}}

<div class="form-group">
    <label for="goodsName">原价</label>
    <input type="text" class="form-control"  name="Goods[price]" value="{{isset($goods_row)?$goods_row['price']:''}}" placeholder="">
</div>


<div class="form-group">
    <label for="goodsName">折扣价</label>
    <input type="text" class="form-control"  name="Goods[discount_price]" value="{{isset($goods_row)?$goods_row['discount_price']:''}}" placeholder="">
</div>



<div class="form-group">
    <label for="goodsName">库存</label>
    <input type="text" class="form-control"  name="Goods[stock]" value="{{isset($goods_row)?$goods_row['stock']:''}}" placeholder="">
</div>

<div class="form-group">
    <label for="goodsName">单位</label>
    <select class="form-control" name="Goods[unit]">
        @foreach(config('goods_unit') as $unit)
            <option {{isset($goods_row)?($unit == $goods_row['unit'] ? 'selected':''):''}}>
                {{$unit}}
            </option>
        @endforeach
    </select>
</div>

<div class="form-group">
    <label for="goodsName">商品排序</label>
    <input type="text" class="form-control"  name="Goods[sort]" value="{{isset($goods_row)?$goods_row['sort']:''}}" placeholder="请输入排序数字越高排序越靠前">
</div>